package com.sparrow.common.excel.bean;

import java.lang.reflect.Field;
import java.util.Map;

/**
 * excel bean 定义
 */
public class ExcelBeanDefinition {
    /**
     * 全限定类名
     */
    private String className;
    /**
     * sheet -> 列->字段信息
     */
    private Map<String, Map<Integer, FieldInfo>> sheetColFields;
    /**
     * sheet -> 字段名->字段信息
     */
    Map<String, Map<String, FieldInfo>> sheetNameFields;

    private Map<String, Field> fields;

    public ExcelBeanDefinition(String className, Map<String, Map<Integer, FieldInfo>> colFields, Map<String, Map<String, FieldInfo>> nameFields, Map<String, Field> fields) {
        this.className = className;
        this.sheetColFields = colFields;
        this.sheetNameFields = nameFields;
        this.fields = fields;
    }

    public String getClassName() {
        return className;
    }

    public Map<String, Map<Integer, FieldInfo>> getSheetColFields() {
        return sheetColFields;
    }

    public Map<String, Map<String, FieldInfo>> getSheetNameFields() {
        return sheetNameFields;
    }

    public Map<String, Field> getFields() {
        return fields;
    }
}
